﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Area.aspx.cs" Inherits="ZLDC.Estate.CM.Area" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <base target="_self" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../js/jquery/style/jquery.hiAlerts.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../js/jquery/jquery.hiAlerts-min.js" type="text/javascript"></script>

    <script src="../js/LexunJS.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckAll() {
            var arrInputControls;
            arrInputControls = document.getElementsByName("cbArea");
 
            var hAppliances = "";
            var strname = "";
            for (i = 0; i < arrInputControls.length; i++) {
                if (arrInputControls[i].checked == true) {
                    var id = document.getElementById("cbArea_" + i).value;
                    var name = document.getElementById("Area_" + i).value;
                    hAppliances += id + ",";
                    strname += name + ",";
                }

            }
            strname = strname.substring(0, strname.length - 1);
            hAppliances = hAppliances.substring(0, hAppliances.length - 1);
            if (hAppliances.length > 0 && strname.length > 0) {
                window.returnValue = hAppliances + "|" + strname;
                window.close();
            }
            else {
                window.returnValue = "";
                window.close();

            }

         }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="divArea" runat="server">
    </div>
    <div  style="text-align:center">
        <img alt="" src="../images/bot2.gif"  onclick="CheckAll();"/>    
    </div>
    </form>
</body>

</html>
